
import java.util.TreeMap;
public class PageList 
{
    private TreeMap pages_list = new TreeMap();
    private String[] language= {"English", "German", "French", "Italian", "Russian"};
    //"http://en.wikipedia.org/wiki/Main_Page"
    //"http://de.wikipedia.org/wiki/Wikipedia:Hauptseite",
    //"http://fr.wikipedia.org/wiki/Accueil",
    //"http://it.wikipedia.org/wiki/Pagina_principale",
    //"http://ru.wikipedia.org/wiki/Заглавная_страница"};
    private String[] start_page = {"http://en.wikipedia.org",
                                   "http://de.wikipedia.org",
                                   "http://fr.wikipedia.org",
                                   "http://it.wikipedia.org",
                                   "http://ru.wikipedia.org"};
    public PageList()
    {
        createPagesList();
    }
    private void createPagesList()
    {
        if(language.length == start_page.length)
        {
            for(int i = 0; i <  language.length; i++)
            {
                pages_list.put(language[i], start_page[i]);                
            }
        }
        else
        {
            System.out.print("\n Can not find start page!");
        }
    }
    public String[] getLanguageList()
    {
        return language;
    }
    public String getStartPage(String language)
    {      
        return new String("" + pages_list.get(language));
    }
}
